package com.briup.corejava.day06;

/**
 * 给创建对象提供程序入口
 */
public class Test2 {
    public static void main(String[] args) {
        // 创建对象，属性赋值，调用方法
        Phone p1 = new Phone();
        p1.brand = "xiaomi 12 pro";
        p1.price = 4999.99;
        p1.call();
        p1.sendMessage("雷军","求增xiaomi su7紫色版");
        System.out.println(p1);

        Phone p2 = new Phone();
        p1.brand = "huawei mate60 pro";
        p1.price = 7999;
        p1.call();
        p1.sendMessage("tom","晚饭吃什么？");
    }
}
